#include "Dealer.h"
#include <thread>

int main() {
    DealerEndpoint dealer("tcp://localhost:5555");
    int i = 0;
    while (true) {
        dealer.sendMessage("Message " + std::to_string(i));
        dealer.receiveMessage();
        i++;
        //等待1秒
        std::this_thread::sleep_for(std::chrono::seconds(1));
    }
    return 0;
}